<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<?php
$meta = array(
	array('name' => 'robots', 'content' => 'no-cache'),
	array('name' => 'description', 'content' => $description),
	array('name' => 'keywords', 'content' => $keywords),
	array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv')
);
echo meta($meta);
echo link_tag('favicon.ico', 'shortcut icon', '');
?>
<title>Quản lý File</title>
<base href="<?php echo site_url('bakend/filemanager'); ?>" />
<?php foreach($styles as $style): ?>
<?php echo "<link href='{$style}' rel='stylesheet' type='text/css' />\n"; ?>
<?php endforeach; ?>
<script type="text/javascript">
	var base_url = "<?php echo $base_url; ?>";
	var base_path = "<?php echo $base_path; ?>";
</script>
<?php foreach($scripts as $script): ?>
<?php echo "<script type='text/javascript' src='{$script}' ></script>\n"; ?>
<?php endforeach; ?>
</head>
<body>
<div id="container">
  <div id="menu">
  	<a id="create" class="button">Tạo thư mục</a>
  	<a id="delete" class="button">Xóa</a>
  	<a id="move" class="button">Di chuyển</a>
  	<a id="copy" class="button">Sao chép</a>
  	<a id="rename" class="button">Đổi tên</a>
  	<a id="upload" class="button">Tải lên</a>
  	<a id="refresh" class="button">Refresh</a>
  </div>
  <div id="column_left"></div>
  <div id="column_right"></div>
</div>
<script type="text/javascript"><!--
$(function () {
	$('#column_right a').live('dblclick', function () {
		<?php if (isset($fckeditor) && $fckeditor) { ?>
		window.opener.CKEDITOR.tools.callFunction(1, '<?php echo $directory; ?>' + $(this).attr('file'));
		self.close();
		<?php } elseif (isset($field) && $field) { ?>
		parent.$('#hidden<?php echo $field; ?>').val($(this).attr('file'));
		parent.$('#dialog').dialog('close');
		parent.$('#dialog').remove();
		<?php } ?>
	});	
});
//--></script>
</body>
</html>